﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InterValometer
{
    class Acquisition
    {
        public Acquisition()
        {
            this.Dirty = false;

            // We don't exist in the DB yet
            this.UID = -1;
            this.Name = "";
            this.Date = Convert.ToDateTime("01/01/1980");
            this.Time = Convert.ToDateTime("12:00:00");
            this.Temperature = 0;
        }

        public Acquisition(int acq_uid, string acq_name, DateTime acq_date, DateTime acq_time, decimal acq_temp) : this()
        {
            this.UID = acq_uid;
            this.Name = acq_name;
            this.Date = acq_date;
            this.Time = acq_time;
            this.Temperature = acq_temp;
        }

        public override string ToString()
        {
            return "UID=" + this.UID + ", Name=" + this.Name + ", Date=" + this.Date + ", Time=" + this.Time + ", Temperature=" + this.Temperature;
        }
        public int UID { get; set; }
        public string Name { get; set; }
        public DateTime Date { get; set; }
        public DateTime Time { get; set; }
        public decimal Temperature { get; set; }

        public bool Dirty { get; set; }
    }
}
